package praktikumid.p07_k;

public class HumanUnit extends Unit {
	private String lastname;

	public HumanUnit(String name, int walkingSpeed) {
		this.name = name;
		this.walkingSpeed = walkingSpeed;
	}

	@Override
	public void walk() {
		System.out.println("human is walking");
	}
	
	public void toBeOrNotToBe() {
		System.out.println("to be or not to be");
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		// teen midagi lastname'iga
		this.lastname = lastname;
	}


}
